package top.songxs.dao;

import org.springframework.stereotype.Repository;
import top.songxs.base.BaseDao;
import top.songxs.entity.Permission;

import java.io.Serializable;
import java.util.List;
@Repository
public interface PermissionDao extends BaseDao<Permission> {
    List<Permission> findAll();

    List<Long> findPermissionByRoleId(Long roleId);

    List<Permission> findMenuPermissionByAdminId(Long adminId);

    List<Permission> findAllMenuPermission();

    List<String> findAllCodeList();

    List<String> findCodeListByAdminId(Long adminId);

    //根据parentId查询子菜单列表
    List<Permission> findPermissionListByParentId(Serializable parentId);
}
